home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d6 / tallyho.arc / PINDEX.FCP < prev    next >
Text File  |  1990-09-23  |  618b  |  57 lines

  1. @DSPLY "This program"
  2. @DSPLY "calculates the"
  3. @DSPLY "price index number"
  4. @DSPLY "based on the Laspeyres"
  5. @DSPLY "formula."
  6. =
  7. @NEW STEP
  8. @GET "Base year quantity?"
  9. @RIN (1)
  10. @GET "Base year price?"
  11. @RIN (2)
  12. @GET "Current price?"
  13. @RIN (3)
  14. *
  15. @ROUT (1)
  16. =
  17. @NEW STEP
  18. +
  19. @ROUT (4)
  20. =
  21. @NEW STEP
  22. @RIN (4)
  23. =
  24. @NEW STEP
  25. @ROUT (1)
  26. *
  27. @ROUT (2)
  28. =
  29. @NEW STEP
  30. +
  31. @ROUT (5)
  32. =
  33. @NEW STEP
  34. @RIN (5)
  35. =
  36. @NEW STEP
  37. @GET "More data? 0=No 1=Yes"
  38. @IF =
  39. 1=
  40. @NEW STEP
  41. @GOTO (2)
  42. =
  43. @NEW STEP
  44. @ROUT (4)
  45. /
  46. @ROUT (5)
  47. =
  48. @NEW STEP
  49. @DSPLY "Price Index is"
  50. 0=
  51. @NEW STEP
  52. @RIN (4)
  53. 0=
  54. @NEW STEP
  55. @RIN (5)
  56. @STOP
  57.